﻿@using WI.CandidateManager.Business.Objects
@using WI.CandidateManager.Common.Data.Entities
@using CandidateManager.ViewsParams
@using strconsts = WI.CandidateManager.Common.Data.Constants.StringConstants
@model IEnumerable<Coach>

@{
    //ViewBag.Title
}

@{
    Html.RenderPartial("GenericGet", Model, new ViewDataDictionary
        {
            {
                strconsts.Parameters, new GenericGetParams(
                    propertiesToDisplay: new[]
                        {
                            EntityBaseBO.GetPropertyName((Coach c) => c.Login),
                            EntityBaseBO.GetPropertyName((Coach c) => c.FullName),
                            EntityBaseBO.GetPropertyName((Coach c) => c.ShortName),
                            EntityBaseBO.GetPropertyName((Coach c) => c.Email),
                            EntityBaseBO.GetPropertyName((Coach c) => c.Phone),
                            EntityBaseBO.GetPropertyName((Coach c) => c.RegisterDate),
                            EntityBaseBO.GetPropertyName((Coach c) => c.Gender)
                        },
                    enableCreate: true,
                    enableEdit: true,
                    enableDelete: true,
                    controllerName: strconsts.Coaches,
                    createActionName: strconsts.Create,
                    editActionName: strconsts.Update,
                    deleteActionName: strconsts.Delete)
            }
        });
}
